package com.scsj.supermarket.base;

import android.content.Context;

import com.scsj.supermarket.bean.IndexBean;
import com.scsj.supermarket.bean.IndexMarketBean;
import com.scsj.supermarket.bean.LoginBean;

import java.util.Map;

import dkmvp.net.ResponseCallback;
import okhttp3.RequestBody;
import rx.Subscription;

/**
 * 首页除去店铺
 */

public class IndexBase {

    public interface IView {

        void showSuccessMsg(String s);

        void showErrorMsg(String s);

        void setAllData(IndexBean indexBean);

        void setIndexMarketData(IndexMarketBean indexMarketBean);
    }

    public interface IPresenter {

        void deliverAllList(RequestBody requestBody);

        void deliverMarketList(RequestBody requestBody);
    }

    public interface IModel {

        Subscription getData(RequestBody requestBody, ResponseCallback<IndexBean> callback);

        Subscription getIndexMarketData(RequestBody requestBody, ResponseCallback<IndexMarketBean> callback);
    }

}
